/*
* PrintFilter.cpp: Impletement class PrintFilter.
* The main function of this cpp file is to print Vinsts of a VBlock.
* By: CrossBit Group, vivy. 2008-3-31 .
*/

#include <iostream>
#include "crossbit/VFilter.h"
#include "crossbit/VBlock.h"

using namespace crossbit;

XTUint32 PrintFilter::run(VBlock *vb)
{
    vb -> print(std::cout);
    std::cout << std::endl;

    return (XTUint32)0;
}

XTUint32 DumpFilter::run(VBlock *vb)
{
    vb -> print(std::cerr);
    std::cerr << std::endl;

    return (XTUint32)0;
}
